package com.wzapp.sitposture.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

import java.util.HashMap;

/**
 * Created by qianglong on 2018/2/28.
 */
@Data
public class BusinessEvent extends ApplicationEvent {

    private static final long serialVersionUID = -4889514048653514158L;

    /**
     * 业务类型
     */
    private String bizCode;

    /**
     * 业务参数
     */
    private HashMap<String,Object> param;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public BusinessEvent(Object source) {
        super(source);
    }

    public BusinessEvent(Object source, String bizCode, HashMap<String, Object> param) {
        super(source);
        this.bizCode = bizCode;
        this.param = param;
    }
}
